@extends('shopWx.global')

@section('content')
<div class="page page-current" id="check">
    <header class="bar bar-nav">
        <a href="{{ action('Shop\DealController@getIndex') }}" class="icon icon-left pull-left" style="font-size: 0.8rem">戻る</a>
    </header>
    <div class="content check-content" id="page-data" data-url="{{ action('Shop\DealController@getCheckAjax') }}">
        <div class="content-block-title">お届け先住所の選択</div>
        <div class="list-block media-list">
            <ul>
                <li class="item-link item-content" onclick="$.router.load('{{ action('Shop\DealController@getSelectAddress') }}');">
                    <div class="item-inner" id="address" data-id="">
                        <div class="item-subtitle"></div>
                        <div class="item-text"></div>
                        {{--<input type="text" id='picker-address' value="" />--}}
                    </div>
                </li>
            </ul>
        </div>
        <div class="content-block-title">お届け日時指定</div>
        <div class="list-block">
            <ul>
                <li class="item-content item-link" onclick="$.router.load('{{ action('Shop\DealController@getSelectTime') }}');">
                    <div class="item-inner" id="delivery" data-id="{{ isset($timeData[0]['id']) ? $timeData[0]['id'] : '' }}">
                        <div class="item-title">{{ isset($timeData[0]['time']) ? $timeData[0]['time'] : '' }}</div>
                        <div class="item-after"><span>{{ isset($timeData[0]['price']) ? $timeData[0]['price'] : 0 }}</span> 円</div>
{{--                        <input type="text" id='picker' value="{{ isset($timeData[0]['time']) ? $timeData[0]['time'] : '' }}" />--}}
                    </div>
                </li>
            </ul>
        </div>
        <div class="content-block-title">商品</div>
        <div id="check-list" class="list-block">
            <ul>
            </ul>
        </div>
        <div class="content-block-title">備考</div>
        <textarea class="check-textarea" name="remark" placeholder="備考"></textarea>
    </div>

    <div class="check-footer">
        <div class="row no-gutter">
            <div class="col-60">
                <p>合計：<span style="color: #ff6600"><span id="cart-page-total">0</span> 円</span></p>
            </div>
            <div class="col-40">
                <a href="#" class="button button-danger" onclick="$.createOrder('{{ action('Shop\DealController@postCreatOrder') }}');">お支払へ</a>
            </div>
        </div>
    </div>
</div>
@endsection